package languageacquisition.ontology;

import jade.core.AID;

public class EnvObject {

	private AID aid;
	public EnvObject(){
		aid = null;
	}
	public EnvObject(AID aid2) {
		aid = aid2;
	}

	public AID getAid() {
		return aid;
	}

	public void setAID(AID aid) {
		this.aid = aid;
	}

	public boolean isObservable() {
		return true;
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((aid == null) ? 0 : aid.hashCode());
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EnvObject other = (EnvObject) obj;
		if (aid == null) {
			if (other.aid != null)
				return false;
		} else if (!aid.equals(other.aid))
			return false;
		return true;
	}
	public String toString(){
		return aid.getLocalName();
	}
}
